package cn.com.fuhuitong.main.order.entity

import cn.com.fuhuitong.http.BaseResponse
import java.io.Serializable

data class SubmitGoodsResponse(
    val data: SubmitGoodsEntity
) : BaseResponse()

data class SubmitGoodsEntity(
    val goods: MutableList<Good>,
    val total: Double,
    val is_store_display: Int
)

data class Good(
    val goods: Goods,
    val num: String,
    val specifications: Specifications
)

data class SubmitNatureResponse(
    val data: SubmitNatureEntity
) : BaseResponse()

data class SubmitNatureEntity(
    var price: Double = 0.0,
    val score: Int = 0,
    var total: Double = 0.0
)

data class Goods(
    val id: Int,
    val image: String,
    val is_specifications: Int,
    val price: Double,
    val stock: Int,
    val title: String
)

data class Specifications(
    val id: Int,
    val specifications_name: String,
    val specifications_num: Int,
    val specifications_price: Double
)

data class SubmitOrderIdResponse(
    val data: SubmitOrderIdEntity
) : BaseResponse()

data class SubmitOrderIdEntity(
    val order_id: String
)


data class SubmitConfirmEntity(
    val goods: List<SubmitConfirmGoods>
) : Serializable {
    var is_score: String? = null
    var address_id: String? = null
    var remarks: String? = null
    var flagship_store_id: Int = 0
}

data class SubmitConfirmGoods(
    val goods_id: String,
    val num: String,
    val specifications_id: String
) : Serializable